package com.ruoyi.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通知消息对象 app_dynamic_msg
 *
 * @author ruoyi
 * @date 2023-02-28
 */
@TableName(value = "app_dynamic_msg")
public class AppDynamicMsg extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crtTime;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 动态id
     */
    @Excel(name = "动态id")
    private Long dynamicId;

    /**
     * 动态类型，0：纯文字，1：图片，2：视频
     */
    @Excel(name = "动态类型，0：纯文字，1：图片，2：视频")
    private Integer dynamicType;

    /**
     * 动态内容
     */
    @Excel(name = "动态内容")
    private String dynamicContent;

    /**
     * 动态图片
     */
    @Excel(name = "动态图片")
    private String dynamicImg;

    /**
     * 消息类型，0：点赞，1：评论动态，2：回复评论
     */
    @Excel(name = "消息类型，0：点赞，1：评论动态，2：回复评论")
    private Integer msgType;

    /**
     * 操作用户id
     */
    @Excel(name = "操作用户id")
    private Long fromUserId;

    /**
     * 操作用户昵称
     */
    @Excel(name = "操作用户昵称")
    private String fromUserName;

    /**
     * 操作用户头像
     */
    @Excel(name = "操作用户头像")
    private String fromUserHeadImg;

    /**
     * 评论id
     */
    @Excel(name = "评论id")
    private Long commentId;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    private String content;

    /**
     * 回复用户昵称
     */
    @Excel(name = "回复用户昵称")
    private String replyUserName;

    /**
     * 消息状态，0：未读，1：已读
     */
    @Excel(name = "消息状态，0：未读，1：已读")
    private Integer msgStatus;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDynamicId(Long dynamicId) {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() {
        return dynamicId;
    }

    public void setDynamicType(Integer dynamicType) {
        this.dynamicType = dynamicType;
    }

    public Integer getDynamicType() {
        return dynamicType;
    }

    public void setDynamicContent(String dynamicContent) {
        this.dynamicContent = dynamicContent;
    }

    public String getDynamicContent() {
        return dynamicContent;
    }

    public void setDynamicImg(String dynamicImg) {
        this.dynamicImg = dynamicImg;
    }

    public String getDynamicImg() {
        return dynamicImg;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setFromUserId(Long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserHeadImg(String fromUserHeadImg) {
        this.fromUserHeadImg = fromUserHeadImg;
    }

    public String getFromUserHeadImg() {
        return fromUserHeadImg;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setMsgStatus(Integer msgStatus) {
        this.msgStatus = msgStatus;
    }

    public Integer getMsgStatus() {
        return msgStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("crtTime", getCrtTime()).append("userId", getUserId()).append("dynamicId", getDynamicId()).append("dynamicType", getDynamicType()).append("dynamicContent", getDynamicContent()).append("dynamicImg", getDynamicImg()).append("msgType", getMsgType()).append("fromUserId", getFromUserId()).append("fromUserName", getFromUserName()).append("fromUserHeadImg", getFromUserHeadImg()).append("commentId", getCommentId()).append("content", getContent()).append("replyUserName", getReplyUserName()).append("msgStatus", getMsgStatus()).toString();
    }
}
